<?php

/**
 * PENGUIN FrameWork
 * View Build View page width Smarty
 * 
 * @author      hungtd <tdhungit@gmail.com> 0972014011
 * @copyright   Tran Dinh Hung 2011
 * @package     PenguinFW
 * @subpackage  ModuleBuilder
 * @version     1.0.0
 */
?>

<div class="md-error">
    <?=validation_errors();?>    
</div>

<form action="" method="post">    
    <table class="mb">
        <tr>
            <td>Module Resource</td>
            <td><input type="text" name="resource" /></td>
        </tr>
        <tr>
            <td>Template name</td>
            <td><input type="text" name="view_name" /></td>
        </tr>
        <tr>
            <td>Add form</td>
            <td><input type="checkbox" name="add_form" /></td>
        </tr>
        <tr>
            <td>Action link [Add form]</td>
            <td><input type="text" name="add_form_link" /></td>
        </tr>
        <tr>
            <td>Search form</td>
            <td><input type="checkbox" name="search_form" /></td>
        </tr>
        <tr>
            <td>Copy from</td>
            <td>
                <select name="template_view">
                    <option value="index">INDEX</option>
                    <option value="add">ADD</option>
                    <option value="edit">EDIT</option>
                </select>
            </td>
        </tr>
        
        <tr>
            <td></td>
            <td><p style="height:20px;">&nbsp;</p><input type="submit" value=" ADD VIEW " /></td>
        </tr>
    </table>
</form>

<style type="text/css">
    table.mb {width:940px;}
    table.mb td {vertical-align:top;border-bottom:1px solid #EEEEEE;border-right:1px solid #EEEEEE;padding:3px 0;}
    table.mb input[type=text] {width:200px;border:1px solid #238EC6;padding:2px;}
    .md-b {padding:0;margin: 0;}
    .mb-field {padding:5px 0;}
    #mb-content-field {}
    .mb-remove-field {padding:0 5px;}
    .md-error p {color:#FF0000;font-weight:700;}
    input[type=submit], input[type=button] {border:1px solid #000000;padding:2px 7px;background-color:#EEEEEE;font-weight:700;}
</style>